using System;
using System.Collections;
using System.Web;

namespace Sedna.Core.Controller.Common
{
	/// <summary>
	/// Summary description for ReturnUrlActionParam.
	/// </summary>
	public class ReturnUrlActionParam : IActionParam
	{
		public string Name
		{
			get { return "infra_return_url"; }
			set { throw new NotSupportedException("parameter has fixed name"); }
		}

		public string GetValue(IExecutionContext executionContext)
		{
			return HttpContext.Current.Server.UrlEncode(HttpContext.Current.Request.RawUrl);
		}
	}
}
